package sample.negative.service;

/**
 * 支付服务
 */
public class PaymentService {

    /**
     * 支付
     * @param paymentType
     * @param amount
     */
    public void pay(String paymentType, double amount) {
        if ("credit_card".equals(paymentType)) {
            // 信用卡支付逻辑
            System.out.println("Processing credit card payment for " + amount);
        } else {
            throw new UnsupportedOperationException("Unsupported payment type: " + paymentType);
        }
    }
}
